CC = g++ -pedantic -ansi -Wall -Wextra

triplegasm: ball.o ballsphere.o core.o main.o manipulator.o \
 objectnode.o triplegasm.o
	$(CC)	-o triplegasm $^

ball.o: ball.cpp ball.hpp basesphere.hpp objectnode.hpp
	$(CC)	-c	ball.cpp

basesphere.o: basesphere.cpp basesphere.hpp objectnode.hpp
	$(CC)	-c	basesphere.cpp

core.o: core.cpp core.hpp
	$(CC)	-c	core.cpp

main.o: main.cpp triplegasm.hpp core.hpp ball.hpp basesphere.hpp \
 objectnode.hpp manipulator.hpp
	$(CC)	-c	main.cpp

manipulator.o: manipulator.cpp manipulator.hpp basesphere.hpp \
 objectnode.hpp ball.hpp
	$(CC)	-c	manipulator.cpp

objectnode.o: objectnode.cpp objectnode.hpp
	$(CC)	-c	objectnode.cpp

triplegasm.o: triplegasm.cpp triplegasm.hpp core.hpp ball.hpp \
 basesphere.hpp objectnode.hpp manipulator.hpp
	$(CC)	-c	triplegasm.cpp
